package com.crland.tools;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.InputStreamReader;
import java.io.LineNumberReader;

public class LinuxExec {
    private Logger logger = LoggerFactory.getLogger(getClass());
    public void exec(String cmd) {
    try {
        String[] cmdA = { "/bin/sh", "-c", cmd };
        Runtime.getRuntime().exec(cmdA);
    } catch (Exception e) {
        logger.error(e.toString());
    }
}
}
